package com.example.mvvm.base;

import android.os.Bundle;

import androidx.annotation.LayoutRes;
import androidx.annotation.Nullable;
import androidx.lifecycle.ViewModel;

public interface IBaseView<VM extends ViewModel> {

    @LayoutRes
    int getLayoutId();

    void initData(@Nullable Bundle savedInstanceState);

    int variableId();

    boolean isBinding();

    boolean isTranslucent();

    VM createViewModel();

    /**
     * 显示加载
     */
    void showLoading();

    /**
     * 隐藏加载
     */
    void hideLoading();
}
